
<form method="post" action="/oss/?r=iosExamineCat/doEdit">
    <{include file='../common_params.tpl'}>
    <input type="hidden" name="id" value="<{$info.id}>" />
    <div class="box box-black">
        <div class="box-body">
            <table class="table table-bordered">
                <colgroup>
                    <col style="width: 20%;"></col>
                    <col style="width: 80%;"></col>
                </colgroup>
                
                <tr>
                    <th class="th-label">分类名称</th>
                    <td>
                        <input type="text" name="name" class="form-control inline" value="<{$info.name}>" placeholder="" />
                    </td>
                </tr>

                
                <tr>
                    <th class="th-label">游戏公告地址</th>
                    <td>
                        <input type="text"  name="game_notice_url" class="form-control " value="<{$info.game_notice_url}>" placeholder="" />
                    </td>
                </tr>
                
                <tr>
                    <th class="th-label">游戏服务器地址</th>
                    <td>
                        <input type="text" name="game_sever_list_url" class="form-control " value="<{$info.game_sever_list_url}>" placeholder="" />
                    </td>
                </tr>
                
                <tr>
                    <th class="th-label">登录服务器地址</th>
                    <td>
                        <input type="text" name="login_server_address" class="form-control " value="<{$info.login_server_address}>" placeholder="" />
                    </td>
                </tr>
                
                <tr>
                    <th class="th-label">登录服务器端口</th>
                    <td>
                        <input type="text" name="login_server_port" class="form-control " value="<{$info.login_server_port}>" placeholder="" />
                    </td>
                </tr>
                
                <tr>
                    <th class="th-label">资源更新地址</th>
                    <td>
                        <input type="text" name="resource_update_address" class="form-control " value="<{$info.resource_update_address}>" placeholder="" />
                    </td>
                </tr>
                
                <tr>
                    <th class="th-label">资源渠道ID</th>
                    <td>
                        <input type="text" name="channel_platform_id" class="form-control " value="<{$info.channel_platform_id}>" placeholder="" />
                    </td>
                </tr>
                
            </table>
        </div>

        <div class="box-footer">
            <a href="<{$backUrl}>" class="btn btn-default">返回</a>
            <button type="submit" name="sub" class="btn btn-default pull-right">保存</button>
            <input type="hidden" name="page" value="<{$page}>" />
        </div>
    </div>
</form>

<script type="text/javascript">
    $(function(){
    	$('button[name="sub"]').click(function(){
    		var name = $('input[name="name"]').val();
        	if(name == ''){
        		layer.alert('请填写名称', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}

        	var game_notice_url = $('input[name="game_notice_url"]').val();
        	if(game_notice_url == ''){
        		layer.alert('游戏公告地址', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	var game_sever_list_url = $('input[name="game_sever_list_url"]').val();
        	if(game_sever_list_url == ''){
        		layer.alert('请填写游戏服务器地址', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	var login_server_address = $('input[name="login_server_address"]').val();
        	if(login_server_address == ''){
        		layer.alert('请填写登录服务器地址', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	var login_server_port = $('input[name="login_server_port"]').val();
        	if(login_server_port == ''){
        		layer.alert('请填写登录服务器端口', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	var resource_update_address = $('input[name="resource_update_address"]').val();
        	if(resource_update_address == ''){
        		layer.alert('请填写资源更新地址', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	var channel_platform_id = $('input[name="channel_platform_id"]').val();
        	if(channel_platform_id == ''){
        		layer.alert('请填写资源渠道ID', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}

        });
    });
</script>